package Test;

import com.mapper.UsersMapper;
import com.pojo.Users;
import com.utlis.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
@@ -13,4 +14,12 @@ public class UsersTest {
        System.out.println(users);
        sqlSession.close();
}
@Test
public void findUserWithOrdersTest() {
    SqlSession sqlSession = MyBatisUtils.getSession();
    UsersMapper mapper = sqlSession.getMapper(UsersMapper.class);
    Users users = mapper.selectUserById(1);
    System.out.println(users);
    sqlSession.close();
}
}